﻿@using Smartstore.Web.Models.Catalog
@using Smartstore.Core.Checkout.GiftCards 

@model ProductDetailsModel.GiftCardModel

<div sm-if="Model.IsGiftCard" class="pd-giftcard">
    <div class="form-group pd-giftcard-recipient-name">
        <label asp-for="@Model.RecipientName" class="required"></label>
        <input asp-for="@Model.RecipientName" type="text" />
    </div>
    <div sm-if="Model.GiftCardType == GiftCardType.Virtual" class="form-group pd-giftcard-recipient-email">
        <label asp-for="@Model.RecipientEmail" class="required"></label>
        <input asp-for="@Model.RecipientEmail" type="email" />
    </div>
    <div class="form-group pd-giftcard-sender-name">
        <label asp-for="@Model.SenderName" class="required"></label>
        <input asp-for="@Model.SenderName" type="text" />
    </div>
    <div sm-if="Model.GiftCardType == GiftCardType.Virtual" class="form-group pd-giftcard-sender-email">
        <label asp-for="@Model.SenderEmail" class="required"></label>
        <input asp-for="@Model.SenderEmail" type="email" />
    </div>
    <div class="form-group pd-giftcard-message">
        <label asp-for="@Model.Message"></label>
        <textarea asp-for="@Model.Message"></textarea>
    </div>
</div>